import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_shift' })
export default class BaseShift extends BaseEntity {


  @Column({ type: 'varchar', length: 50, unique: true,name:'shift_code', comment: '班组编码' })
  @ApiProperty()
  shiftCode: string;

  @Column({ type: 'varchar', length: 50,name:'shift_name', comment: '班组名称' })
  @ApiProperty()
  shiftName: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
